package work3;

public class Computer extends Role {
    public static int guess() {
        int a = (int) (Math.random() * 3);//随机产生数 a
        switch (a){
            case 0:
                System.out.println("电脑出:剪刀");
                break;
            case 1:
                System.out.println("电脑出:布");
                break;
            case 2:
                System.out.println("电脑出:石头");
                break;
        }

        return a;
    }

}
